package com.enjoyor.health.HGPT.core.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.enjoyor.health.HGPT.core.entity.News;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author enjoyor
 * @since 2023-10-18
 */
public interface NewsMapper extends BaseMapper<News> {

    List<News> getNewsList();

    int updateLike(Map<String, Object> map);

    Page<News> getNewsPage(Page<News> page, @Param("reqVo") Map<String, Object> map);
}
